<?php if(isset($result) && $result->num_rows() > 0): ?>
<?php foreach($result->result() as $value): ?>
    <li data-type="<?php echo $value->region_type;?>" data-id="<?php echo $value->region_id;?>"><?php echo $value->region_name; ?></li>
<?php endforeach; ?>
<?php endif ?>